package com.jojo.store.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jojo.store.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    /**
     * 列表商品所有
     * @return
     */
    @Select("select *from t_product where status=1 order by priority DeSc Limit 0,4")
   List<Product> selectHotList();



}
